package oralExamSchedulingSystem;


import oralExamSchedulingSystem.IO;
import oralExamSchedulingSystem.Scheduler;

import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

public class Controller {
	private IO io;

	private String _academicYear;
	private String _semester;
	LinkedList<String> _roomArray=new LinkedList<String>();
	//convert ArrayList<String> to String []
	
	public Controller() throws IOException
	{
		
		io= new IO();
		
		_academicYear = io.getAcademicYear();
		_semester = io.getSemester();
		_roomArray=io.getRoomNumbers(io.getNumberOfRoom());
		Timetable chineseTimeTable=new Timetable("Chinese",io.getReportingRoomNumber() ,"1/2",540,15,4,28,_roomArray.size(),_roomArray);
		new Scheduler().schedule(chineseTimeTable, io.getCsvStudentList(), 4, _roomArray.size(), _roomArray);

	}


	

}
